﻿<%@ Page Title="" Language="C#" Theme="Default_Themes" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="DanhSachCanBoDoan.aspx.cs" Inherits="DanhMuc_DanhSachCanBoDoan" %>
    <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="udt" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pntcontent" runat="server">
            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <div class="box-title">
                            <h3><i class="icon-table"></i>Danh sách cán bộ đoàn: <%=st %></h3>
                            <div class="box-tool">
                                <div class="box-tool">
                                    <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
                                    <a data-action="close" href="#"><i class="icon-remove"></i></a>
                                </div>
                            </div>
                        </div>
                        <div class="box-content" style="border: 1px solid #B6D1F2;">
                            <div class="btn-toolbar pull-left clearfix" style="display: inline-block; float: left; min-width: 200px; width: 253px;">
                                <div class="btn-group">
                                    <asp:TextBox placeholder="Tìm kiếm theo tên" ID="txtHoten" runat="server" Height="14px" Style="margin-bottom: 0px" Width="189px"></asp:TextBox>
                                      <asp:AutoCompleteExtender runat="server"
                                          ID="txtHoten_AutoCompleteExtender" 
                                           UseContextKey="True"
                                        ServiceMethod="GetCompletionList_byname"
                                        TargetControlID="txtHoten"
                                        MinimumPrefixLength="2"
                                        CompletionInterval="100"
                                        EnableCaching="true"
                                        CompletionSetCount="20"
                                        CompletionListCssClass="autocomplete_completionListElement"
                                        CompletionListItemCssClass="autocomplete_listItem"
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem">
                                    </asp:AutoCompleteExtender>
                                      &nbsp;<asp:LinkButton ID="btn_timkiem" class="btn btn-primary" OnClick="btn_timkiem_Click" runat="server" Height="16px"><i class=" icon-search"></i></asp:LinkButton>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <!--Thanh cuon ngang-->
                                <asp:GridView ID="Grid_DSCanBoDoan" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="100%" CellPadding="5" ForeColor="#333333" GridLines="None" Style="margin-top: 0px" CellSpacing="1" DataKeyNames="MaDoanVien" BorderStyle="Solid" BorderWidth="1px" OnRowDeleting="Grid_DSCanBoDoan_RowDeleting">
                                    <AlternatingRowStyle BackColor="White" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="Mã Đoàn Viên">
                                            <ItemTemplate>
                                                <asp:Label runat="server" ID="lblMaDoanVien" Text='<%#Eval("MaDoanVien") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Tên đoàn viên">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTenDoanVien" runat="server" Text='<%#Eval("TenDoanVien") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Left" VerticalAlign="Middle" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Chức vụ">
                                            <ItemTemplate>
                                                <%#Eval("ChucVu") %>
                                                <asp:Label ID="lblchucvucu" runat="server" Visible="false" Text='<%#Eval("ChucVuCu") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Left" VerticalAlign="Middle" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Đơn vị công tác">
                                            <ItemTemplate>
                                                <%#Eval("DonViCongTac") %>
                                                <asp:Label ID="lbldonvicongtaccu" runat="server" Visible="false" Text='<%#Eval("DonViCongTacCu") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Left" VerticalAlign="Middle" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Ngày bắt đầu">
                                            <ItemTemplate>
                                                <%#string.Format("{0:dd/MM/yyyy}",Eval("NgayBacDauCongTac")) %>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Chuyển công tác">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButtonChuyenCongTac" runat="server" CausesValidation="false" CommandName="Delete"
                                                            Text="<i class=icon-file-text-alt></i> Chuyển công tác"></asp:LinkButton>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <EditRowStyle BackColor="#2461BF" />
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#EFF3FB" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                </asp:GridView>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnketnapdang" runat="server" Visible="false">
            <div class="row-fluid">
                <div class="span12">
                    <div class="box">
                        <div class="box-title">
                            <h3><i class="icon-table"></i>Thông tin chuyển công tác đoàn</h3>
                            <div style="float:right;">
                                <asp:LinkButton ID="btnclose" Visible="true" runat="server" class="btn  btn-danger" OnClick="btnclose_Click"><i class="icon-signout"></i> Đóng</asp:LinkButton>
                            </div>
                        </div>
                        <div class="box-content" style="border: 1px solid #B6D1F2;">
                            <div class="khungvien1">
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:RadioButton ID="rdb1" runat="server" OnCheckedChanged="rdb1_CheckedChanged" CssClass="radio inline" Checked="true" Text="Chuyển công tác sang cơ quan Đảng, chính quyền, đoàn thể" GroupName="a"  AutoPostBack="true"/>
                                <asp:RadioButton ID="rdb2" runat="server" OnCheckedChanged="rdb2_CheckedChanged" CssClass="radio inline" Text="Luân chuyển cán bộ đoàn" GroupName="a"  AutoPostBack="true" />
                            </div>
                            <div style="height:10px;"></div>
                            <input type="hidden" runat="server" id="txtmadoanvienchuyen" />
                            <input type="hidden" runat="server" id="txtchucvucu" />
                            <input type="hidden" runat="server" id="txtdonvicu" />
                            <asp:Panel ID="pnchuyensangcoquankhac" runat="server" Visible="true">
                                <div class="control-group info">
                                    <label class="control-label" style="width:200px;padding-right:10px;">Ngày chuyển công tác</label>
                                    <div class="controls">
                                        <asp:TextBox BorderStyle="Solid" AutoPostBack="true" OnTextChanged="txtNgayChuyenCongTac_TextChanged" placeholder="Ngày/tháng/năm" BorderColor="#3A87AD" BorderWidth="1px" ID="txtNgayChuyenCongTac" runat="server" class="span3"></asp:TextBox>
                                        <asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                        <ajaxToolkit:CalendarExtender ID="calendarButtonExtender2" runat="server" TargetControlID="txtNgayChuyenCongTac" PopupButtonID="Image1" Format="dd/MM/yyyy" />
                                    </div>
                                    <div style="height:5px;"></div>
                                    <label class="control-label" style="width:200px;padding-right:10px;">Loại cơ quan chuyển đến</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drlchuyenden" runat="server" CssClass="span5" Height="17px"></asp:DropDownList>
                                    </div>
                                    <div style="height:5px;"></div>
                                    <label class="control-label" style="width:200px;padding-right:10px;">Tên cơ quan chuyển đến</label>
                                    <div class="controls">
                                        <asp:TextBox ID="txttencoquanchuyenden" runat="server" CssClass="span5"></asp:TextBox>
                                    </div>
                                </div>
                            </asp:Panel>
                            <asp:Panel ID="pnluanchuyencanbodoan" runat="server" Visible="false">
                                <div class="control-group info">
                                    <label class="control-label" style="width:200px;padding-right:10px;">Ngày chuyển</label>
                                    <div class="controls">
                                        <asp:TextBox BorderStyle="Solid" AutoPostBack="true" OnTextChanged="txtNgayChuyenCongTac_TextChanged" placeholder="Ngày/tháng/năm" BorderColor="#3A87AD" BorderWidth="1px" ID="txtNgayluanchuyencanbodoan" runat="server" class="span3"></asp:TextBox>
                                        <asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="~/css/icons/lich.gif" AlternateText="Click to show calendar" />
                                        <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtNgayluanchuyencanbodoan" PopupButtonID="ImageButton1" Format="dd/MM/yyyy" />
                                    </div>
                                    <div style="height:5px;"></div>
                                    <label class="control-label" style="width:200px;padding-right:10px;">Đơn vị chuyển đến</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drldonviluanchuyenden" runat="server" CssClass="span5" Height="17px"></asp:DropDownList>
                                    </div>
                                    <div style="height:5px;"></div>
                                    <label class="control-label" style="width:200px;padding-right:10px;">Chức vụ nới chuyển đến</label>
                                    <div class="controls">
                                        <asp:DropDownList ID="drlchucvunoichuyenden" runat="server" CssClass="span5" Height="17px"></asp:DropDownList>
                                    </div>
                                </div>
                            </asp:Panel>
                            <div class="controls">
                                <asp:LinkButton ID="btnsave" class="btn btn-primary"  runat="server" Width="60px" OnClick="btnsave_Click"><i class="icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                                <asp:LinkButton ID="LinkButtonClose" Visible="true" runat="server" class="btn  btn-danger" OnClick="LinkButtonClose_Click"><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                <asp:Label ID="lblthanhcong" runat="server" ForeColor="Red"></asp:Label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </asp:Panel>
        </ContentTemplate>
        <Triggers>
             <asp:AsyncPostBackTrigger ControlID="btn_timkiem" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="udtprogress" runat="server" AssociatedUpdatePanelID="udt">
        <ProgressTemplate>
            <div class="progress">
                <img src="../img/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>  
     <script type="text/javascript">
         $(document).ready(function () {
             $('#dvGridWidth').width($('#dvScreenWidth').width());
         });
    </script> 
    <style type="text/css">
        .khungvien1 {
            border: 1px solid #3a87ad;
            width:80%;
        }
    </style>
     <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</asp:Content>

